package com.yzx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzx.domain.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper extends BaseMapper<SysRole> {
    void deleteRoleMenuByIds(@Param("longs") List<Long> longs);

    void deleteRoleUserByIds(@Param("longs") List<Long> longs);

    List<Long> queryMenuIdsByRoleId(@Param("roleId") Long roleId);

    int saveRoleMenu(@Param("roleId") Long roleId, @Param("menuId") Long menuId);
}